<layout name="layout"/>
<load href="__PUBLIC__/{:UIKIT}/css/components/datepicker.almost-flat.min.css"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/datepicker.min.js"/> 
<load href="__PUBLIC__/{:UIKIT}/js/components/lightbox.min.js"/> 
<include file="Public:angular"/>
	
<p><a href="__CONTROLLER__/index" class="uk-button uk-button-default">{$Think.lang.back}</a>
</p>
	
<form   id="validate_form" class="uk-form" enctype="multipart/form-data" method="post" action="__CONTROLLER__/updateHandle">
	<input type="hidden" name="news_id" value="{$news_id}"/>
<table class="uk-table">
<tr><td width=150>{$Think.lang.news_title}</td><td><input type="text" name="news_title" value="{$news_title}" required /></td></tr>
<tr><td>{$Think.lang.news_type}</td><td>
		<select name="news_type">
		<option value="">--</option>
		<volist name=":getObjectList('newstype')" id="vo">
		<option value="{$vo.np_name}" <eq name="vo.np_name" value="$news_type">selected</eq>>{$vo.np_name}</option>
		</volist>
		</select>
<small class="uk-text-muted">{$Think.lang.news_notice}</small>
</td></tr>
<tr><td>{$Think.lang.lang}</td><td>
<select name="news_lang" required>
<option value="">--</option>
<volist name=":explode(',',$web_config['web_lang'])" id="vo">
<option <eq name="vo" value="$news_lang">selected</eq> value="{$vo}">{$vo}</option>
</volist>
</select>
<small class="uk-text-muted">{$Think.lang.lang_tip}</small>
</td></tr>
<tr><td>{$Think.lang.desc}</td><td><textarea style="height:120px;" name="news_desc"  >{$news_desc}</textarea></td></tr>
<tr><td>{$Think.lang.sort}</td><td><input type="text" name="news_sort" value="{$news_sort}" isIntGtZero='true' required />
</td></tr>
<tr><td>{$Think.lang.source}</td><td><input type="text" name="news_source" value="{$news_source}" />
</td></tr>
<tr><td>{$Think.lang.keywords}</td><td><input type="text" name="news_keyword" value="{$news_keyword}"   />
</td></tr>
<tr><td>{$Think.lang.news_hit}</td><td><input type="text" name="news_hit" isIntGtZero='true' value="{$news_hit}"  />
</td></tr>
<tr><td>{$Think.lang.content}</td><td> 
<textarea id="container" name="news_content" style="height:230px;width:100%;" type="text/plain">{$news_content}</textarea></td></tr>
<tr><td>{$Think.lang.tpl}</td><td><input type="text" name="news_tpl" value="{$news_tpl}" /></td></tr>
<tr><td>{$Think.lang.img}</td><td>
<label><input type="checkbox" name="isupload" ng-model="isupload"/>是否上传图片</label>
<input type="file" name="news_img"  ng-disabled="!isupload" />
<notempty name="news_img">
	<a href="__PUBLIC__/Uploads/{$news_dir}{$news_img}" data-uk-lightbox title="{$news_title|cut_str='20'}">
		<img src="__PUBLIC__/Uploads/{$news_dir}/thumb_{$news_img}"/></a>
</notempty>	
</td></tr>
<tr><td>{$Think.lang.status}</td><td>
	<label><input type="radio" name="news_status" value="1" <eq name="news_status" value="1">checked</eq> required /> {$Think.lang.yes}</label>
	<label><input type="radio" name="news_status" value="0" <eq name="news_status" value="0">checked</eq> /> {$Think.lang.no}</label>
</td></tr>
<tr><td>{$Think.lang.update_time}</td><td>
	<input type="text" name="news_update_time" data-uk-datepicker="{format:'YYYY-MM-DD'}" value="{$news_update_time}" /></td></tr>
<tr><td>--</td><td>
<button class="uk-button uk-button-danger" type="submit">{$Think.lang.save}</button>
</td></tr>
</table>
</form>	
	
<!--引入ueditor-->
<include file="Public:ueditor"/>
